package emt.friendtracking.maps;

import emt.friendtracking.BaseActivity;
import emt.friendtracking.smsmodule.Message;

public abstract class AnswerTracking extends Thread
{
	public enum Type { ACCEPT, DECLINE, TIME };
	
	protected void sendAnswer(String username, String phoneNo, Type answer, String distance)
	{
		String message;
		try
		{
			message = Message.make(username,answer, distance);
			BaseActivity.sms.sendASMS(phoneNo, message);
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
}
